﻿<UserControl x:Class="JustPlus.ChannelPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="256" d:DesignWidth="512" xmlns:my="clr-namespace:JustPlus">
    <UserControl.Resources>
        <Storyboard x:Key="StackTrans">
            <DoubleAnimation Storyboard.TargetName="stackpanel_translate" Storyboard.TargetProperty="X" From="80" To="0" Duration="0:0:0.5"/>
        </Storyboard>
    </UserControl.Resources>
    <Grid MouseLeave="Grid_MouseLeave">
        <Grid.Background>
            <SolidColorBrush />
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="79*" />
            <RowDefinition Height="146*" />
            <RowDefinition Height="31*" />
        </Grid.RowDefinitions>
        <Image Height="59" HorizontalAlignment="Left" Margin="0,10,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="85" Source="/JustPlus;component/Images/标签背景.png" Opacity="0.5" />
        <Label Content="公共频道" Height="24" HorizontalAlignment="Left" Margin="12,21,0,0" Name="label1" VerticalAlignment="Top" Width="60" MouseLeftButtonDown="label1_MouseLeftButtonDown" />
        <Image Height="59" HorizontalAlignment="Left" Margin="85,10,0,0" Name="image2" Opacity="0.5" Source="/JustPlus;component/Images/标签背景.png" Stretch="Fill" VerticalAlignment="Top" Width="85" />
        <Label Content="DJ频道" Height="24" HorizontalAlignment="Left" Margin="101,21,0,0" Name="label2" VerticalAlignment="Top" Width="48" MouseLeftButtonDown="label2_MouseLeftButtonDown" />
        <Image Height="59" HorizontalAlignment="Left" Margin="170,10,0,0" Name="image3" Opacity="0.5" Source="/JustPlus;component/Images/标签背景.png" Stretch="Fill" VerticalAlignment="Top" Width="85" />
        <Label Content="私人频道" Height="24" HorizontalAlignment="Left" Margin="183,21,0,0" Name="label3" VerticalAlignment="Top" Width="60" MouseLeftButtonDown="label3_MouseLeftButtonDown" />
        <Label Content="频道选择" Height="47" HorizontalAlignment="Left" Margin="333,12,0,0" Name="label4" VerticalAlignment="Top" Style="{StaticResource GradLabel}" Width="118" FontSize="18" />
        <StackPanel Height="145" Name="stackPanel2" Orientation="Horizontal" Margin="55,1,1,0" Grid.Row="1" MouseLeftButtonDown="stackPanel2_MouseLeftButtonDown">
            <StackPanel.RenderTransform>
                <TransformGroup>
                    <TranslateTransform x:Name="stackpanel_translate"/>
                </TransformGroup>
            </StackPanel.RenderTransform>
        </StackPanel>
        <Label Content="" Grid.Row="1" Height="145" HorizontalAlignment="Left" Name="label5" VerticalAlignment="Top" Width="57" MouseMove="label5_MouseMove" Margin="0,1,0,0" />
        <Label Content="" Grid.Row="1" Height="145" HorizontalAlignment="Left" Margin="456,2,0,0" Name="label6" VerticalAlignment="Top" Width="55" MouseMove="label6_MouseMove" Grid.RowSpan="2" />
        <Label Content="新歌" Grid.Row="2" Height="27" HorizontalAlignment="Left" Margin="414,3,0,0" Name="label7" VerticalAlignment="Top" Width="97" Style="{StaticResource GradLabel}" />
        <Grid.RenderTransform>
            <TransformGroup>
                <TranslateTransform x:Name="grid_translate1"/>
            </TransformGroup>
        </Grid.RenderTransform>
        <Grid.Triggers>
            <EventTrigger RoutedEvent="Grid.Loaded">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetName="grid_translate1" Storyboard.TargetProperty="X" From="256" To="0" Duration="0:0:0.5"/>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Grid.Triggers>
    </Grid>
</UserControl>
